package com.zackary.spring_blogs.service.impl;

import com.zackary.spring_blogs.dao.BlogCategoryMapper;

import com.zackary.spring_blogs.entity.Blog;
import com.zackary.spring_blogs.entity.BlogCategory;
import com.zackary.spring_blogs.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2024/11/19 9:44
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private BlogCategoryMapper blogCategoryMapper;
//    @Autowired
//    private BlogMapper blogMapper;


    @Override
    public List<BlogCategory> getAllCategories() {
        return blogCategoryMapper.findCategoryList(null);
    }
}
